package mianxiangduixiang.Test5;

public class Test {
    public static void main(String[] args) {
        Pencil pencil = new Pencil("晨光");
        RubberPencil rubberPencil = new RubberPencil("六神", "橡皮", "白色");
        System.out.println(pencil.toString());
        System.out.println(rubberPencil.toString());
        rubberPencil.erase("橡皮");
    }
}
